
<BR>
<div class="toggler-c opened" title="Menu">
<TABLE width=150 height=20 cellspacing=0 cellpadding=0>
<TR><TD bgcolor=#AEBAD9 align=right><p><a href="#" onclick="popup('addEvent', resetAddEventForm, 'createEvent')" class="navLink">Add a New Event &nbsp;</a></p></TD></TR>
<TR><TD bgcolor=#FFFFFF height=3></TD></TR></TABLE>
<TABLE width=150 height=20 cellspacing=0 cellpadding=0>
<TR><TD bgcolor=#DADBFB align=right><p><a href="#" onclick="popup('schedEvent', null, 'scheduler')"; class="navLink">Schedule Meeting</a> &nbsp;</p></TD></TR>
<TR><TD bgcolor=#FFFFFF height=3></TD></TR></TABLE>
<TABLE width=150 height=20 cellspacing=0 cellpadding=0>
<TR><TD bgcolor=#96CB9E align=right><p><a href="#" onclick="popup('createTeam', resetCreateTeamForm)" class="navLink">Create a New Team</a>&nbsp;</p></TD></TR>
<TR><TD bgcolor=#FFFFFF height=3></TD></TR></TABLE>
<TABLE width=150 height=20 cellspacing=0 cellpadding=0>
<TR><TD bgcolor=#C2DDBF align=right><p><a href="#" onclick="popup('viewDetails', null)" class="navLink">Account Options &nbsp;</a></p></TD></TR>
<TR><TD bgcolor=#FFFFFF height=3></TD></TR></TABLE>
<TABLE width=150 height=20 cellspacing=0 cellpadding=0>
<TR><TD bgcolor=#DADBFB align=right><p><a href="#" onclick="popup('createCalendar', null)" class="navLink">Create Calendar &nbsp;</a></p></TD></TR>
<TR><TD bgcolor=#FFFFFF height=3></TD></TR></TABLE>
<TABLE width=150 height=20 cellspacing=0 cellpadding=0>
<TR><TD bgcolor=silver align=right><p><a href="logout.php" class="navLink">Logout &nbsp;</a></p></TD></TR>
<TR><TD bgcolor=#FFFFFF height=3></TD></TR></TABLE>
</div>

<div  id="addEvent" style="display:none">
<?php
	include_once "addEvent.php";
?>
</div>
<div  id="createTeam" style="display:none">
<?php
	include_once "createTeam.php";
?>
</div>
<div  id="schedEvent" style="display:none">
<?php
	include_once "scheduler.php";
?>
</div>
<div  id="viewDetails" style="display:none">
<?php
	include_once "viewDetails.php";
?>
</div>
<div  id="createCalendar" style="display:none">
<?php
	include_once "addCalendar.php";
?>
</div>
<div>

<div class="toggler-c" title="My Calendars">
<ul class="sidebarcals" id='calList'>
		<?php
			$cal = new Zend_Gdata_Calendar($_SESSION['client']);
			//get the list of calendars 
			$calFeed = $cal->getCalendarListFeed();
			//display the list of all the user's calendars
			echo "<div id='calTitle'>";
			foreach($calFeed as $calendar) {
				echo "<li style='background-color:".$calendar->color->value."; filter:alpha(opacity=85);-moz-opacity:.85;opacity:.85;'><input type='checkbox'    onclick='toggleEvents(this, \"".$calendar->color->value."\")' checked='checked' >".$calendar->title->text."</li>";
			}
			echo "</div>";
		?>
</ul>		
</div>